#ifndef EVENTMANAGER_H
#define EVENTMANAGER_H

#include "gestureobserver.h"
#include "gestureevent.h"

#include <vector>

namespace mlgesture {

class EventManager
{
public:
	static EventManager& getInstance();
	void addObserver(GestureObserver* observer);
	void removeObserver(GestureObserver* observer);
	void sendEvent(GestureEvent *event);

private:
	std::vector<GestureObserver*> observers_;
	EventManager() {}
	EventManager(const EventManager&) {}
};

}

#endif // EVENTMANAGER_H
